package com.xinruke.hostels.system.manage.interfaces.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.xinruke.hostels.common.vo.query.BaseQueryVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @ClassName BookingRoomTypeQueryDTO
 * @CreateDate 2019/7/19
 * @Author FengXinQiang
 * @Version V1.0.0.0
 * @Decription 预订房间类型查询请求
 */
@ApiModel("预订房间类型查询请求")
@Data
public class BookingRoomTypeQueryDTO extends BaseQueryVO {

    /**
     * 类型:1单人间、2标准间、3多人间、4套间
     */
    @ApiModelProperty(value = "类型:1单人间、2标准间、3多人间、4套间")
    private Byte type;

    /**
     * 房型简称
     */
    @ApiModelProperty("房型简称")
    private String fangxingjiancheng;

    @ApiModelProperty(value = "开始时间", required = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @NotNull(message = "开始时间不能为空")
    private Date kaishishijian;

    @ApiModelProperty(value = "结束时间", required = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @NotNull(message = "结束时间不能为空")
    private Date jieshushijian;
}
